package events
{
	import flash.events.Event;
	
	public class MapEvent extends Event
	{
		/**
		 * 选择完编辑的地图
		 * */
	    public static var BEGIN_EDITMAP:String = "BEGIN_EDITMAP";
		/**
		 * 编辑已有地图资源数据
		 * 如果从maps中选择的地图已经编辑了地图资源，那么从已有资源进行编辑
		 * */
	    public static var EDIT_MAPRESOURCE:String = "EDIT_MAPRESOURCE";
		/**
		 * 创建地图完成
		 * */
		public static var CREATECOMPLATE_MAP:String = "CREATE_MAP";
		/**
		 * 缩放地图
		 * */
		public static var ZOOM_MAP:String = "ZOOM_MAP";
		/**
		 * 隐藏基础网格
		 * */
		public static var GRIDBASE_VISIBLE:String = "GRIDBASE_VISIBLE";
		/**
		 * 隐藏行走区域网格
		 * */
		public static var GRIDWALK_VISIBLE:String = "GRIDWALK_VISIBLE";
		/**
		 * 改变操作状态
		 * */
		public static var MOUSESTATUS_CHANGE:String = "MOUSESTATUS_CHANGE";
		/**
		 * 显示帮助
		 * */
		public static var SHOWHELP:String = "SHOWHELP";
		/**
		 * 执行某个步骤
		 * */
		public static var COMPLATESTEP:String = "COMPLATESTEP";
		/**
		 * 开始制作缩略图
		 * */
		public static var EXPORTTHUMB:String = "EXPORTTHUMB";
		/**
		 * 产生缩略图数据
		 * */
		public static var THUMB:String = "THUMB";
		
		public var mapObj:Object;
		
		public function MapEvent(type:String,obj:Object = null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			this.mapObj = obj;
			super(type, bubbles, cancelable);
		}
	}
}